﻿@model  IList<WebVideo.EntityVideo>
            @{
                ViewBag.Title = "Tìm kiếm";
}
  <script type="text/javascript">
      document.body.className = 'no-js';
              $('li a').click(function (event) {
                
                var getURL = '@Url.Action("AjaxPage", "Index")';
                  var Id = this.id;
                  var search = $('#search').val();
                  $('ul li.active').removeClass('active');
                  $(this).closest('li').addClass('active');
                  $.get(getURL, {"page": Id ,"search":search}, function (data) {
                      $("div.contScroll").html(data);
                      
                });
            
         });
   </script>

<div class="inner-container" id="inner-container" style="width:8000px">
    @{
        if(Request.Cookies["UserId"] == null)
        {
            	<script type="text/javascript">
            	    $(document).ready(function () {
            	        $('.contScroll').click(function (e) {
            	            e.preventDefault();
            	            $('#frmLoginn, #widget _2x1').modal('show');
            	        });
            	    });</script>   
        }
    }
            <div class="wrap-widget">
            	<div class="inner-widget _6">
                	<h1><b>Kết quả tìm kiếm</b></h1>
                    
                    <div class="pagination pagination-right">
                        <ul>
                            @{
                                for (var i = 0; i <= ViewBag.sl / 5; i++)
                                {
                                    var t = i + 1;
                                     <li><a  href="#" id = "@t">@t</a></li>
                                }
                            }
                      
                        </ul>
                 
                    </div><!--/ .pagination-->
                    <div class="alert alert-success">
                                Có @ViewBag.sl kết quả cho từ khóa <strong> @ViewBag.search </strong>
                    </div> 
                    <div class="widget _6x3 phone bg-color-grayLight">
                    	<div class="widget-content">
                            <div class="contScroll">
                                <!--<div class="alert alert-error">
                                  <strong>Không có kết quả nào phù hợp</strong>
                                </div>-->
                                @Html.Partial("_ListSearch", Model)
                                
                            </div><!--/ .contScroll-->
                        </div><!--/ .widget-content-->
                    </div><!--/ .widget-->
                </div><!--/ .inner-widget-->
            </div><!--/ .wrap-widget -->
</div><!--/ .inner-container-->

@section occasionalScripts {
    <script type="text/javascript" src="@Url.Content("~/Content/cssFrontEnd/js/jquery.min.js")" ></script>
    <script type="text/javascript" src="@Url.Content("~/Content/cssFrontEnd/js/load.js")" ></script>
    <script type="text/javascript" src="@Url.Content("~/Content/cssFrontEnd/js/styles.js")" ></script>
    <script type="text/javascript" src="@Url.Content("~/Content/cssFrontEnd/js/jquery.nicescroll.min.js")" ></script>
}
<style>
    alert-success {

font-family: arial !important;
color:black !important;
}
</style>